import { useUserInfoStore } from '@/stores/user'

export const auth = {
  mounted(el, binding) {
    el //指令所在的dom元素
    binding.value // 指令后面的值
    const store = useUserInfoStore()
    console.log(binding.value)

    if (store.permissionBtnList.includes(binding.value) == false) {
      //按钮被删除
      el.remove()
    }
  },
}
